package itheima.com.MyTree;

import java.util.TreeSet;

public class TreeTest03 {
    public static void main(String[] args) {
        TreeSet<Student> ts = new TreeSet<Student>();
        Student s1 = new Student("玲玲",99,97,100);
        Student s2 = new Student("明明",95,97,100);
        Student s3 = new Student("花花",91,95,93);
        Student s4 = new Student("可可",96,100,90);

        ts.add(s1);
        ts.add(s2);
        ts.add(s3);
        ts.add(s4);

        for (Student t : ts) {
            System.out.println(t);
        }
    }
}
